package onlinebanking.security.threshold;

import java.math.BigInteger;

public class Share {
	private BigInteger x;
	private BigInteger y; // y = f(x)

	public Share(long x, long y) {
		this.x = new BigInteger(String.valueOf(x));
		this.y = new BigInteger(String.valueOf(y));
	}

	public String toString() {
		return "(" + this.x.toString() + "," + this.y.toString() + ")";
	}
	
	public long getX() {
		return this.x.longValue();
	}

	public long getY() {
		return this.y.longValue();
	}
}
